package com.supremex.aisupremex.web.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supremex.aisupremex.web.entity.Topic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 题目表 Mapper 接口
 * </p>
 *
 * @author zkx
 * @since 2024-04-16
 */
public interface TopicMapper extends BaseMapper<Topic> {

	/**
	 * 随机题列表
	 * @param num
	 * @return
	 */
	List<Topic> listRandomTopics(@Param("num") Integer num);
}
